dhcpv6-ia : write statefile atomically
authorHans Dedecker <[email protected]>
Sat, 8 Aug 2020 23:08:23 +0000 (19:08 -0400)
committerHans Dedecker <[email protected]>
Sun, 15 Nov 2020 17:33:22 +0000 (18:33 +0100)
commitfb55e80394c51d7502bb278f57520dec15a11355
treed95477035551829e564a4268708de964d35a430a
parent735c7836bfcc08f3ecd8cdaf1368665b8a241b94
dhcpv6-ia : write statefile atomically

Applications (e.g. unbound) need a consistent view of the statefile;
therefore write all the lease info to a temporary file which is later
renamed to the configured statefile name

Suggested-by : John Fremlin <[email protected]>
Signed-off-by: Hans Dedecker <[email protected]>
src/dhcpv6-ia.c